const isMobile = () => {
    return /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i.test(
    navigator.userAgent
    );
};
const pathApp = isMobile() ? 'app/' : '';

const aion = [
    {
        path: '/game/aion/data',
        component: () => import('@/page/game/aion/data.vue'),
        meta: { title: '资料数据库'},
    },
    {
        path: '/game/aion/compare',
        component: () => import('@/page/game/aion/compare.vue'),
        meta: { title: '装备对比，资料数据库'},
    },
    {
        path: '/game/aion/simulator',
        component: () => import('@/page/game/aion/simulator.vue'),
        meta: { title: '人物属性模拟器，资料数据库'},
    },
    {
        path: '/game/aion/wuqi_jingtong',
        component: () => import('@/page/game/aion/wuqi_jingtong.vue'),
        meta: { title: '武器精通计算，资料数据库'},
    },
    {
        path: '/game/aion/tzList',
        component: () => import('@/page/game/aion/tzList.vue'),
        meta: { title: '套装列表，资料数据库'},
    },
]



const zhuxian = [
    {
        path: '/game/zx/default',
        alias: '/',
        component: () => import(`@/page/game/zhuxian/${pathApp}default.vue`),
        meta: { title: '首页，东方易宝天行，诛仙数据库'},
    },
    {
        path: '/game/zx/exchange',
        component: () => import(`@/page/game/zhuxian/${pathApp}exchange/exchange.vue`),
        meta: { title: '东方易宝天行，诛仙数据库'},
    },
    {
        path: '/game/zx/booth',
        component: () => import(`@/page/game/zhuxian/${pathApp}booth/booth.vue`),
        meta: { requireAuth: true , title: '我的摊位管理，东方易宝天行，诛仙数据库'},
    },
    {
        path: '/game/zx/booth/list',
        component: () => import(`@/page/game/zhuxian/${pathApp}booth/list.vue`),
        meta: { requireAuth: true ,  title: '我的摊位列表，东方易宝天行，诛仙数据库'},
    },
    {
        path: '/game/zx/order',
        component: () => import(`@/page/game/zhuxian/${pathApp}order/order.vue`),
        meta: { requireAuth: true ,  title: '我的订单，东方易宝天行，诛仙数据库'},
    },
    {
        path: '/game/zx/system/code',
        component: () => import(`@/page/game/zhuxian/${pathApp}system/code.vue`),
        meta: { title: '账号管理，东方易宝天行，诛仙数据库'},
    },
    {
        path: '/game/zx/gameInfo',
        component: () => import(`@/page/game/zhuxian/${pathApp}gameInfo/gameInfo.vue`),
        meta: { title: '游戏介绍，东方易宝天行，诛仙数据库'},
    },
    {
        path: '/game/zx/user',
        component: () => import(`@/page/game/zhuxian/${pathApp}user/userList.vue`),
        meta: { title: '账号管理，东方易宝天行，诛仙数据库'},
    },
    {
        path: '/game/zx/userReal',
        component: () => import(`@/page/game/zhuxian/${pathApp}user/userReal.vue`),
        meta: { title: '账号审核，东方易宝天行，诛仙数据库'},
    },
    {
        path: '/game/zx/userRealAdd',
        component: () => import(`@/page/game/zhuxian/${pathApp}user/userRealAdd.vue`),
        meta: { title: '提交审核账号，东方易宝天行，诛仙数据库'},
    },
    {
        path: '/game/zx/need',
        component: () => import(`@/page/game/zhuxian/${pathApp}need/need.vue`),
        meta: { title: '需求福利专区，东方易宝天行，诛仙数据库'},
    },
    {
        path: '/game/zx/ranking',
        component: () => import(`@/page/game/zhuxian/${pathApp}gameUser/ranking.vue`),
        meta: { title: '东方排行榜，东方易宝天行，诛仙数据库'},
    },
    {
        path: '/game/zx/bbs',
        component: () => import(`@/page/game/zhuxian/${pathApp}bbs/index.vue`),
        meta: { title: '东方玩家交流论坛，东方易宝天行，诛仙数据库'},
    },
    {
        path: '/game/zx/bbs/detail',
        component: () => import(`@/page/game/zhuxian/${pathApp}bbs/bbs_detail.vue`),
        meta: { title: '帖子详情，东方易宝天行，诛仙数据库'},
    },
    {
        path: '/game/zx/nanyu',
        component: () => import(`@/page/game/zhuxian/nanyu/index.vue`),
        meta: { title: '南雨辅助工具库，东方易宝天行，诛仙数据库'},
    },
    {
        path: '/game/zx/user/setting',
        component: () => import(`@/page/game/zhuxian/user/userSetting.vue`),
        meta: { title: '账户设置，东方易宝天行，诛仙数据库'},
    },
    {
        path: '/game/zx/bbs/zuimeiZX',
        component: () => import(`@/page/game/zhuxian/${pathApp}bbs/action/zuimeiZX.vue`),
        meta: { title: '最美诛仙参加数据列表，东方易宝天行，诛仙数据库'},
    },
    {
        path: '/game/zx/account',
        component: () => import(`@/page/game/zhuxian/user/userAccount.vue`),
        meta: { title: '账号信息，东方易宝天行，诛仙数据库'},
    },
    {
        path: '/game/zx/bossList',
        component: () => import(`@/page/game/zhuxian/boss/bossList.vue`),
        meta: { title: 'boss记录, 东方易宝天行, 诛仙数据库'},
    },
]

const app = [
    {
        path: '/game/zx/booth/info',
        component: () => import(`@/page/game/zhuxian/app/booth/info.vue`),
        meta: { requireAuth: true , title: '我的账号管理，东方易宝天行，诛仙数据库'},
    },
    {
        path: '/game/zx/admin/app',
        component: () => import(`@/page/game/zhuxian/app/admin/index.vue`),
        meta: { requireAuth: true , title: '后台管理，东方易宝天行，诛仙数据库'},
    },
    {
        path: '/game/zx/admin/app/userReal',
        component: () => import(`@/page/game/zhuxian/app/admin/userReal.vue`),
        meta: { requireAuth: true , title: '预审核账号管理，东方易宝天行，诛仙数据库'},
    },
]

export default aion.concat(zhuxian).concat(app)